/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package fresher.model;

/**
 *
 * @author quangtm5
 */
public class ModelManager {
    private static ModelManager modelManagerInstance = null;
    private static TableManageModelSingleton tableMangeModelSingleton = null;   
    private static BillModelSingleton billModelSingleton = null;
    
    private ModelManager()
    {
        tableMangeModelSingleton = TableManageModelSingleton.getTableManageModel();
        billModelSingleton = BillModelSingleton.getBillModel();
    }
    
    public static synchronized ModelManager getModelManager()
    {
        if(modelManagerInstance == null)
        {
            modelManagerInstance  = new ModelManager();
        }
        
        return modelManagerInstance;
    }
    
    public static TableManageModelSingleton getTableModel()
    {
        return tableMangeModelSingleton;
    }
    
    public static BillModelSingleton getBillModel()
    {
        return billModelSingleton;
    }
    
   
}
